package com.tech.koufu.model;

import java.io.Serializable;

public class UserStocks implements Serializable{
	public String stockId;
	public String stockName;
	public String teamId; //组ID
	public String stockHold; //持股数量
	public String stockbj;  //买入价
	public String stockdqj; //当前价
	public String stockcyl; //持有量
	public String allmoney; //总资产

	@Override
	public String toString() {
		return "UserStocks [stockId=" + stockId + ", stockName=" + stockName
				+ ", teamId=" + teamId + ", stockHold=" + stockHold + ", stockbj=" + stockbj + ", stockdqj=" 
				+ stockdqj + ", stockcyl=" + stockcyl +  ", allmoney=" + allmoney + "]";
	}

	public UserStocks() {
		super();
		// TODO Auto-generated constructor stub
		//
	}



	public UserStocks(String stockId, String stockName, String teamId , String stockHold, String stockbj,
			String stockdqj, String stockcyl, String allmoney) {
		super();
		this.stockId = stockId;
		this.stockName = stockName;
		this.teamId = teamId;
		this.stockHold = stockHold;
		this.stockbj = stockbj;
		this.stockdqj = stockdqj;
		this.stockcyl = stockcyl;
		this.allmoney = allmoney;
	}

	public String getStockId() {
		if (Integer.valueOf(stockId)/10000>=40) {
			return "1" + stockId;
		}else{
			return "0" + stockId;
		}
		
	}

	public void setStockId(String stockId) {
		this.stockId = stockId;
	}

	public String getStockName() {
		return stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}

	public String getTeamId() {
		return teamId;
	}

	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}

	public String getStockHold() {
		return stockHold;
	}

	public void setStockHold(String stockHold) {
		this.stockHold = stockHold;
	}

	public String getStockbj() {
		return stockbj;
	}

	public void setStockbj(String stockbj) {
		this.stockbj = stockbj;
	}

	public String getStockdqj() {
		return stockdqj;
	}

	public void setStockdqj(String stockdqj) {
		this.stockdqj = stockdqj;
	}

	public String getStockcyl() {
		return stockcyl;
	}

	public void setStockcyl(String stockcyl) {
		this.stockcyl = stockcyl;
	}

	public String getAllmoney() {
		return allmoney;
	}

	public void setAllmoney(String allmoney) {
		this.allmoney = allmoney;
	}
	
}
